<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title>首页</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
       <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap-theme.min.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/user.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-box.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-base.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/ui-color.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.icon.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/appcan.control.css">
    </head>
    <body class="um-vp bc-bg" ontouchstart onload="load()">
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh bc-text-head ub bc-head text-center">
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">首页</h1>
            </div>
            <div id="picture" class=""></div>
            <!--content开始-->
            <div id="content" class="ub-f1">
            <div class="guanggao text-center">
				<a href="#"><img class="imgg" src="${pageContext.request.contextPath}/resources/image/tou.png" alt="广告" ></a>
			</div>
                <div style="width: 98%;margin: 0 auto;top: 30px">
                    <!-- 未认证时 -->
                    <div class="fonn jushang" id="wuxi">
                    	<div class="text-center" style="margin-top: 40px;"><img src="${pageContext.request.contextPath}/resources/image/wu.png" ></div>
                      <p class="text-center">您还未认证，请前往认证</p>
                      <div class="renzheng  text-center"><button type="button" class="btn btn-primary"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/select'">立即认证</button></div>
                    </div>
                    <c:forEach var="Vo" items="${material}" >
                    <c:if test="${Vo.rz_status=='0'}">
                    <div class="fonn jushang">
                    	<div class="text-center" style="margin-top: 40px;"><img src="${pageContext.request.contextPath}/resources/image/wu.png" ></div>
                      <p class="text-center">您还未认证，请前往认证</p>
                      <div class="renzheng  text-center"><button type="button" class="btn btn-primary"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/select'">立即认证</button></div>
                    </div>
                    </c:if>
                    <!-- 已认证 --> 
                    <c:if test="${Vo.rz_status=='2'}">
                    <div class="fonn ">
	                    <div class="panel panel-info" style="margin-left: 7%;width: 86%;">
						    <div class="panel-heading">
						        <h3 class="panel-title">您当前认证的版本为</h3>
						    </div>
						    <div class="panel-body text-center">
						        <c:if test="${Vo.rz_type=='1'}">身份证版本</c:if>
	                      		<c:if test="${Vo.rz_type=='2'}">行驶证版本</c:if></p>
						    </div>
						</div>
						<div class="panel panel-info" style="margin-left: 7%;width: 86%;">
						    <div class="panel-heading">
						        <h3 class="panel-title">您当前当前可用借款额度为</h3>
						    </div>
						    <div class="panel-body text-center">
                      			<p>${Vo.rz_surplus_money}</p>
						    </div>
						</div>
                      <div class="renzheng  text-center"><button type="button" class="btn btn-primary"  onclick="location.href='${pageContext.request.contextPath}/consumer/order/borrow'">前往借款</button></div>
                    </div> 
                    </c:if>
                    <!-- 待审核 -->
                    <c:if test="${Vo.rz_status=='1'}">
                    	<div class="text-center" style="margin-top: 40px;"><img src="${pageContext.request.contextPath}/resources/image/wu.png" ></div>
	                    <div class="fonn jushang ">
	                      <p class="text-center">您的资料正在审核过程中</p>
	                    </div> 
                    </c:if>
                    <!-- 不通过 -->
                    <c:if test="${Vo.rz_status=='3'}">
                    <div class="fonn jushang ">
                    	<div class="text-center" style="margin-top: 40px;"><img src="${pageContext.request.contextPath}/resources/image/wu.png" ></div>
                      <p class="text-center">您的资料审核不通过，请重新认证</p>
                      <div class="renzheng  text-center">
                      	<c:if test="${Vo.rz_type=='1'}">
                      		<button type="button" class="btn btn-primary"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/idcard2'">重新认证</button>
                    	</c:if>
                      	<c:if test="${Vo.rz_type=='2'}">
                      		<button type="button" class="btn btn-primary"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/driving2'">重新认证</button>
                    	</c:if>
                      </div>
                    </div> 
                    </c:if>
                    <script>
			    		function load(){
			    			var wu = document.getElementById("wuxi");
			    			wu.style.display="none";
			    		}
				    </script>
                    </c:forEach>
                </div>
            </div>
            <!--footer开始-->
            <div id="footer" class="uf t-bla ub tab bc-text-head ubt bc-border">
				<div class="uf t-bla ub tab_m">
					<div class="ulev-1 ub ub-f1" data-index="0"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/index'">    
						<div class="ub-f1 ub ub-ver item ub-ac sc-text-tab sc-text-active">    
							<div class="ub-f1 fa fa-clipboard fa-2x tx-c"></div>    
							<div class="ulev tx-c">首页</div>    
						</div>        
					</div>
					<div class="ulev-1 ub ub-f1" data-index="1"  onclick="location.href='${pageContext.request.contextPath}/consumer/order/myself'">    
						<div class="ub-f1 ub ub-ver item ub-ac sc-text-tab ">    
							<div class="ub-f1 fa fa-user fa-2x tx-c"></div>    
							<div class="ulev tx-c">我</div>    
						</div>        
					</div>
					<div class="ulev-1 ub ub-f1" data-index="2"  onclick="location.href='${pageContext.request.contextPath}/consumer/customer/more'">    
						<div class="ub-f1 ub ub-ver item ub-ac sc-text-tab">    
							<div class="ub-f1 fa fa-building-o fa-2x tx-c"></div>    
							<div class="ulev tx-c">更多</div>    
						</div>        
					</div>
				</div>
            </div>
        </div>
    </body>
    <script src="${pageContext.request.contextPath}/resources/js/appcan.js"></script>
    <script src="${pageContext.request.contextPath}/resources/js/appcan.control.js"></script>
    <script src="${pageContext.request.contextPath}/resources/js/appcan.tab.js"></script>
    </body>
</html>
